package com.example.service;

import com.example.config.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

@Service
@FeignClient(value = "MICROSERVICE-CLOUD-OPENFEIGN",configuration = FeignConfiguration.class)  //FeignConfiguration OpenFeign 日志增强
public interface HystrixOpenFeignService {

    @GetMapping("/info")
    String getOpenFeiInfo();

    @GetMapping("/timeout")
    String testTimeout();


}
